package com.bonc.rms.jpa.tms;

import javax.transaction.Transactional;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.bonc.rms.entity.TestEntity;
import com.bonc.rms.entity.tms.DepartmentEntity;

public interface DepartmentRepository extends JpaRepository<DepartmentEntity, Integer> {
	
	public String findById(int id);
	@Query("SELECT name FROM DepartmentEntity WHERE ID=?1")
	public String findNameById(Integer departmentId);
	

}
